﻿using System;
using System.Data;
using System.Windows.Forms;
using System.Data.SqlClient;
using QuanLyTuyenSinh.Base;

namespace QuanLyTuyenSinh.Reports
{
    public partial class ReportPhieuBDT : Form
    {
      public ReportPhieuBDT()
        {
            InitializeComponent();
        }

        private void CryStalPhieuBDT_Load(object sender, EventArgs e)
        {
            SqlCommand cmd = new SqlCommand("select * from TSSBD", ConnectData.Getcon());
            SqlDataAdapter DTA = new SqlDataAdapter(cmd);
            DataTable DTL = new DataTable();
            DataSet DTS = new DataSet();
            DTA.Fill(DTS, "TSSBD");
            DTL = DTS.Tables["TSSBD"];
            rptPhieuBDT cry = new rptPhieuBDT();
            cry.SetDataSource(DTL);
            CryStalPhieuBDT.ReportSource = cry;
            CryStalPhieuBDT.Refresh();
        }

      }
}
